<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">
	
var jsModel = {
	key1: 1,
	key2: function () {
		alert("key2");
	}
}

alert(jsModel.key1);
jsModel.key1 = 2;
alert(jsModel.key1);
jsModel.key2();
jsModel.key2 = "key2 = key2";
alert(jsModel.key2);
jsModel.key2 = function () {
	alert("change key2");
}
jsModel.key2();

</script>

</body>
</html>